package top.kiterunner.learning.designpatterns_test.decorator_pattern;

/**
 * AdorynZhao in Tencent-UESTC.
 * Source Code Created on 2017/7/31.
 */
public class Decorator extends SchoolReport {

    private SchoolReport sr;

    public Decorator(SchoolReport sr) {
        this.sr = sr;
    }

    @Override
    public void report() {
        sr.report();
    }

    @Override
    public void sign(String name) {
        sr.sign(name);
    }
}
